package com.ruoyi.manager.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 售货机货道对象 tb_channel
 * 
 * @author ruoyi
 * @date 2025-04-19
 */

@EqualsAndHashCode(callSuper = true)
@Data
public class Channel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 通道ID */
    private Long id;

    /** 通道编码 */
    @Excel(name = "通道编码")
    private String channelId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long skuId;

    /** 设备ID */
    @Excel(name = "设备ID")
    private Long vmId;

    /** 通道编码 */
    @Excel(name = "通道编码")
    private String innerCode;

    /** 通道最大容量 */
    @Excel(name = "通道最大容量")
    private Long maxCapacity;

    /** 通道当前容量 */
    @Excel(name = "通道当前容量")
    private Long currentCapacity;

    /** 上次补货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上次补货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastSupplyTime;
}
